package cn.yoyo.entity;

public class Cart {
    private int id;
    private int uid;
    private int bookid;
    private int num;

    public Cart() {
    }

    public Cart(int id, int uid, int bookid, int num) {
        this.id = id;
        this.uid = uid;
        this.bookid = bookid;
        this.num = num;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public int getBookid() {
        return bookid;
    }

    public void setBookid(int bookid) {
        this.bookid = bookid;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "id=" + id +
                ", uid=" + uid +
                ", bookid=" + bookid +
                ", num=" + num +
                '}';
    }
}
